<script type="text/javascript">
    RED.nodes.registerType('barcode',{
        category: 'Dynamsoft',
        color: '#a6bbcf',
        defaults: {
            name: {value:""},
            license: {value:""},
            template: {value: ""}
        },
        inputs:1,
        outputs:1,
        icon: "function.png",
        label: function() {
            return this.name||"barcode";
        }
    });
</script>

<script type="text/x-red" data-template-name="barcode">
    <div class="form-row">
        <label for="node-input-name"><i class="icon-tag"></i> Name</label>
        <input type="text" id="node-input-name" placeholder="Barcode Reader">
    </div>
    <div class="form-row">
		<label for="node-input-license"><i class="icon-tag"></i> License</label>
		<input type="text" id="node-input-license" placeholder="https://www.dynamsoft.com/CustomerPortal/Portal/Triallicense.aspx">
    </div>
    <div class="form-row">
		<label for="node-input-template"><i class="icon-tag"></i> Template</label>
		<input type="text" id="node-input-template" placeholder="https://www.dynamsoft.com/help/Barcode-Reader/devguide/Template/TemplateSettingsList.html">
	</div>
</script>

<script type="text/x-red" data-help-name="barcode">
    <p>A simple node that read barcodes from image files.</p>
</script>